import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import qs from 'qs';
//中文
import locale from 'element-plus/lib/locale/lang/zh-cn'
//创建一个app常量
const app = createApp(App)
 
import axios from './ajax/index.js'
import VueAxios from 'vue-axios'

//引入elementUI
import ElementPlus from 'element-plus';
//引入样式文件
import 'element-plus/dist/index.css';
//将框架应用到整个Vue实例当中
axios.defaults.baseURL = 'http://127.0.0.1:8093'
//配置公共图片路径===>需要修改vue实例的原型，向原型添加一个新的属性【达到所有的组件都能使用该属性的操作】
app.config.globalProperties.$Imgurl = 'http://127.0.0.1:8093';
app.config.globalProperties.$qs = qs;
app.use(store).use(router).use(VueAxios,axios).use(ElementPlus,{locale}).mount("#app");
